package com.jd.finance.core.service;

import com.jd.finance.core.pojo.entity.Grantt;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jd.finance.result.BaseResult;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 角色权限中间表 服务类
 * </p>
 *
 * @author LiQingBo
 * @since 2022-05-20
 */
public interface GrantService extends IService<Grantt> {

    /**
     * 添加角色-节点中间表
     * @param uid
     * @param listId
     * @param roleId
     * @param request
     * @return
     */
    BaseResult addNodeRole(@Param("uid") Integer uid, @Param("listId") Integer listId, @Param("roleId") Integer roleId, @Param("request") HttpServletRequest request);
}
